import React from 'react';
import { changePage } from '../../store/actions'
import { connect } from 'react-redux'
import FormEditDataDictionary from '../../components/formEditDataDictionary'

class DataDictionaryEdit extends React.Component{
    constructor(props){
        super(props);
        this.state = {
            hello:''
        }
    }
    componentWillReceiveProps(nextProp){}
    changePage(){
        this.props.dispatch(changePage('role-edit'));
    }
    render(){
        return (
            <FormEditDataDictionary id={this.props.params.id} />
        )
    }
}
export default DataDictionaryEdit = connect((state)=>{
    const {user} = state.rootReducer;
    return {user}
})(DataDictionaryEdit)